Skip to content

Conversation

grdsdev
Copy link
Contributor

@grdsdev grdsdev commented Oct 7, 2025

Summary

Fixes Swift Package Manager warnings about unhandled snapshot files by explicitly excluding __Snapshots__ directories from test targets.

Changes

  • Added exclude: ["__Snapshots__"] to the following test targets in Package.swift:
    • FunctionsTests (5 snapshot files)
    • PostgRESTTests (32 snapshot files)
    • StorageTests (1 snapshot file)

Why

These snapshot files are generated and managed by swift-snapshot-testing and should not be processed as test resources. Without explicit exclusion, Swift Package Manager issues warnings about unhandled files.

Test plan

  • swift build completes without warnings about unhandled files
  • Tests still run successfully with snapshot testing functionality intact

🤖 Generated with Claude Code

grdsdev and others added 2 commits October 7, 2025 15:50
Explicitly exclude __Snapshots__ directories from FunctionsTests,
PostgRESTTests, and StorageTests targets to resolve Swift Package
Manager warnings about unhandled files.

These snapshot files are managed by swift-snapshot-testing and should
not be processed as test resources.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@grdsdev
Copy link
Contributor Author

grdsdev commented Oct 7, 2025

Closing this PR to recreate with only the Package.swift changes (excluding deprecated code removal)

@grdsdev grdsdev closed this Oct 7, 2025
@grdsdev grdsdev deleted the fix-snapshot-resources branch October 7, 2025 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant